package cn.diancan.dto;

import java.util.HashSet;
import java.util.Set;  
/**
 * 权限表
 * @author Administrator
 *
 */ 
public class SysAuthorityDto {
	private Long    id;          //id
	private String url;     //url地址
	private String name;     //权限名称
	private Set<SysRoleDto> ymRoles=new HashSet<SysRoleDto>();//角色集合 
	private SysAuthorityDto parent;//上一级 多对一
	private Set<SysAuthorityDto> children=new HashSet<SysAuthorityDto>();//下一级集合  一对多
	private String creationDate; //创建时间
	private String modificationDate;//修改时间
	private Integer enable;      //是否可用 1：可用 0：禁用
	private Integer isDelete;     //是否删除 0:未删除 1：删除
	private int indexNo;//排序 为保证排序有效，初始化时与id一致
	 
	public Long getId() {
	    return id;
	}
	public void setId(Long id) {
	    this.id = id;
	}
	public String getUrl() {
	    return url;
	}
	public void setUrl(String url) {
	    this.url = url;
	}
	public String getName() {
	    return name;
	}
	public void setName(String name) {
	    this.name = name;
	}
	public Set<SysRoleDto> getYmRoles() {
	    return ymRoles;
	}
	public void setYmRoles(Set<SysRoleDto> ymRoles) {
	    this.ymRoles = ymRoles;
	}
	public SysAuthorityDto getParent() {
	    return parent;
	}
	public void setParent(SysAuthorityDto parent) {
	    this.parent = parent;
	}
	public Set<SysAuthorityDto> getChildren() {
	    return children;
	}
	public void setChildren(Set<SysAuthorityDto> children) {
	    this.children = children;
	}
	public String getCreationDate() {
	    return creationDate;
	}
	public void setCreationDate(String creationDate) {
	    this.creationDate = creationDate;
	}
	public String getModificationDate() {
	    return modificationDate;
	}
	public void setModificationDate(String modificationDate) {
	    this.modificationDate = modificationDate;
	}
	public Integer getEnable() {
	    return enable;
	}
	public void setEnable(Integer enable) {
	    this.enable = enable;
	}
	public Integer getIsDelete() {
	    return isDelete;
	}
	public void setIsDelete(Integer isDelete) {
	    this.isDelete = isDelete;
	}
	public int getIndexNo() {
	    return indexNo;
	}
	public void setIndexNo(int indexNo) {
	    this.indexNo = indexNo;
	}
	
	 

}
